﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Ashlen.Portal.Data.SqlServer
{
    public class Constants
    {
        public static string _APPLICATION;
        public static string APPLICATION
        {
            get
            {
                if (_APPLICATION == null)
                {
                    _APPLICATION = System.Configuration.ConfigurationManager.AppSettings["ApplicationID"];
                }
                return _APPLICATION;
            }
        }

        public static int _LOG_THROTTLE = 0;
        public static int LOG_THROTTLE {
            get {
                if (_LOG_THROTTLE == 0) {
                    _LOG_THROTTLE = Convert.ToInt32(UtilityDao.Instance.GetConfig(Constants.APPLICATION, "LogThrottle"));
                }
                return _LOG_THROTTLE;
            }
        }
    }
}
